<!DOCTYPE html>
<html>
<head>
	<title>用户</title>
	<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
	<style type="text/css">
		body { margin: 20 auto 0 auto; }
	</style>
</head>
<body>
<?php
	$types = [
		1 => '小妖币',
		2 => '金币',
	];
?>
<div class="panel panel-default">
  <div class="panel-body">
  		<img src="{{ $user->avatar }}" width="50" height="50" >
    	{{ $user->nickname }}
    	{{ $user->XYB }} <a href="/admin_1427a/user/log?id={{$user->id}}&t=1">小妖币明细 >></a>
    	{{ $user->JB }} <a href="/admin_1427a/user/log?id={{$user->id}}&t=2">金币明细 >></a>
  </div>
</div>
<table class="table table-bordered">
	<tr>
		<th>业务</th>
		<th>说明</th>
		<th>类型</th>
		<th>数额</th>
		<th>时间</th>
	</tr>
	@foreach($logs as $log)
		<tr>
			<td>{{ $bussiness[$log->bussiness_id] }}</td>
			<td>{{ $log->desc }}</td>
			<td>{{ $types[$log->type] }}</td>
			<td>{{ $log->coin }}</td>
			<td>{{ $log->created_at }}</td>
		</tr>
	@endforeach
</table>
{{ $logs->appends($params)->links() }}
</body>
</html>